<?php

require 'orm/om/BaseTournamentPeer.php';


/**
 * Skeleton subclass for performing query and update operations on the 'tournament' table.
 *
 *
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    orm
 */
class TournamentPeer extends BaseTournamentPeer {

	public static function getTeams($tournament){
		//$tournament = new Tournament();
		$oTournamentTeams = $tournament->getTournamentToTeamsJoinTeam();

		$teams = array();
		foreach($oTournamentTeams as $oTournamentTeam){
			$teams[] = $oTournamentTeam->getTeam();
		}

		return $teams;

	}

} // TournamentPeer
